﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BGMasterPage.master" AutoEventWireup="true" CodeFile="CardPermissions.aspx.cs" Inherits="CardPermissions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" Runat="Server">
<style type="text/css">
.title{border-bottom: 1px solid rgb(153, 153, 153);width:98%;padding:5px;}
.checkboxPanel{margin:10px;}
.checkboxPanel span{display:inline-block;margin:0px 5px;}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" Runat="Server">
<div class="title">以下分组不可访问</div>
<div class="checkboxPanel">
<%foreach (var item in GroupList)
  { %>
  <span><input type="checkbox" id="Groups" name="Groups" value="<%=item.ID %>" <%=item.IsSelected?"checked='checked'":"" %> /><%=item.Name %></span>
<%} %>
</div>
<div class="title">以下用户不可访问</div>
<div class="checkboxPanel">
<%foreach (var item in UserList)
  { %>
  <span><input type="checkbox" id="Users" name="Users" value="<%=item.ID %>" <%=item.IsSelected?"checked='checked'":"" %> /><%=item.Username %></span>
<%} %>
</div>
<div class="operationPanel">
    <asp:Label ID="Message" runat="server" Text="保存出错了，请重试或联系管理员！" Visible="False" CssClass="ErrorMessage"></asp:Label>
<asp:Button ID="submit" Text="保存" runat="server" onclick="submit_Click" class="ui-button ui-submit"/>
</span>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Bottom" Runat="Server">
</asp:Content>

